package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ThresholdValueMapper;
import com.ruoyi.system.domain.ThresholdValue;
import com.ruoyi.system.service.IThresholdValueService;

/**
 * 阈值Service业务层处理
 *
 * @author ruoyi
 * @date 2023-10-08
 */
@Service
public class ThresholdValueServiceImpl implements IThresholdValueService
{
    @Autowired
    private ThresholdValueMapper thresholdValueMapper;

    /**
     * 查询阈值
     *
     * @param id 阈值主键
     * @return 阈值
     */
    @Override
    public ThresholdValue selectThresholdValueById(Long id)
    {
        return thresholdValueMapper.selectThresholdValueById(id);
    }

    /**
     * 查询阈值列表
     *
     * @param thresholdValue 阈值
     * @return 阈值
     */
    @Override
    public List<ThresholdValue> selectThresholdValueList(ThresholdValue thresholdValue)
    {
        return thresholdValueMapper.selectThresholdValueList(thresholdValue);
    }

    /**
     * 新增阈值
     *
     * @param thresholdValue 阈值
     * @return 结果
     */
    @Override
    public int insertThresholdValue(ThresholdValue thresholdValue)
    {
        return thresholdValueMapper.insertThresholdValue(thresholdValue);
    }

    /**
     * 修改阈值
     *
     * @param thresholdValue 阈值
     * @return 结果
     */
    @Override
    public int updateThresholdValue(ThresholdValue thresholdValue)
    {
        return thresholdValueMapper.updateThresholdValue(thresholdValue);
    }

    /**
     * 批量删除阈值
     *
     * @param ids 需要删除的阈值主键
     * @return 结果
     */
    @Override
    public int deleteThresholdValueByIds(Long[] ids)
    {
        return thresholdValueMapper.deleteThresholdValueByIds(ids);
    }

    /**
     * 删除阈值信息
     *
     * @param id 阈值主键
     * @return 结果
     */
    @Override
    public int deleteThresholdValueById(Long id)
    {
        return thresholdValueMapper.deleteThresholdValueById(id);
    }
}
